import {METHOD,PATH} from "./config";
import {request} from "./core";

const APIClient = {
    getStoreList(params){
        return request(METHOD.GET,PATH.get_store_list,params)
    },
    getHomeSwiperImg(){
        return request(METHOD.GET,PATH.get_home_swiper)
    },
    getSubjectList(){
        return request(METHOD.GET,PATH.get_subjiet_list)
    },
    get_shop_details(params){
        return request(METHOD.GET,PATH.get_shop_details,params)
    },
    getSubjectDetails(params){
        return request(METHOD.GET,PATH.get_subject_detail,params)
    },
    get_goods_nav(){
        return request(METHOD.POST,PATH.get_goods_nav)
    },
    get_goods_evaluate(params){
        return request(METHOD.POST,PATH.get_goods_evaluate,params)
    },
    get_user_token(params){
        return request(METHOD.GET,PATH.get_user_token,params)
    },
    get_user_info(params){
        return request(METHOD.GET,PATH.get_user_info,params)
    }
}

export default APIClient 